package com.example.jpademo.Controller;

//邮箱登录

import com.example.jpademo.Entity.Author;
import com.example.jpademo.Service.AuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController    //相当于@Controller+@RequestBody
@RequestMapping("/user")
public class LoginController {

    @Autowired
    private AuthorService authorService;
}